// 喜欢视频表
import { sequelize } from "../../init";
import { DataTypes } from "sequelize";

export const Favourite = sequelize.define(
    "Favourite",
    {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        userId: {
            type: DataTypes.INTEGER,
            allowNull: false,
        },
        fileId: {
            type: DataTypes.INTEGER,
            allowNull: false,
        },
    },
    { freezeTableName: true, paranoid: true }
);
